package com.dl.tt.bean;

import java.util.Arrays;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

public class UserForm {

	private String uname;
	private String pwd;
	
	private String sex;
	
	// 爱好可能是多个
	private String[] ck;
	
	// 上传文件 我进行提交操作，需要将选择的文件，上传到服务器
	private MultipartFile  file;

	public UserForm() {
		super();
	}

	public UserForm(String uname, String pwd, String sex, String[] ck, MultipartFile file) {
		super();
		this.uname = uname;
		this.pwd = pwd;
		this.sex = sex;
		this.ck = ck;
		this.file = file;
	}

	public String getUname() {
		return uname;
	}

	public void setUname(String uname) {
		this.uname = uname;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String[] getCk() {
		return ck;
	}

	public void setCk(String[] ck) {
		this.ck = ck;
	}

	public MultipartFile getFile() {
		return file;
	}

	public void setFile(MultipartFile file) {
		this.file = file;
	}

	@Override
	public String toString() {
		return "UserForm [uname=" + uname + ", pwd=" + pwd + ", sex=" + sex + ", ck=" + Arrays.toString(ck) + ", file="
				+ file + "]";
	}
	
	
}
